package com.numberone.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zzc
 * @since 2019-04-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ly_userlogin")
public class Userlogin implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("userId")
    private Integer userId;

    @TableField("accountName")
    private String accountName;

    @TableField("loginTime")
    private LocalDateTime loginTime;

    @TableField("loginIP")
    private String loginIP;


    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getId() {
        return id;
    }

    public Userlogin setId(Integer id) {
        this.id = id;
        return this;
    }

    public Integer getUserId() {
        return userId;
    }

    public Userlogin setUserId(Integer userId) {
        this.userId = userId;
        return this;
    }

    public String getAccountName() {
        return accountName;
    }

    public Userlogin setAccountName(String accountName) {
        this.accountName = accountName;
        return this;
    }

    public LocalDateTime getLoginTime() {
        return loginTime;
    }

    public Userlogin setLoginTime(LocalDateTime loginTime) {
        this.loginTime = loginTime;
        return this;
    }

    public String getLoginIP() {
        return loginIP;
    }

    public Userlogin setLoginIP(String loginIP) {
        this.loginIP = loginIP;
        return this;
    }
}
